<?php
/**
 * 客服回复咨询人,咨询人咨询客服
 * @author webbc
 */
header('Content-type:text/html;charset=utf-8');
require('./conn.php');
$rec = $_POST['rec'];//咨询人变为接收者
$pos = $_COOKIE['username'];//客服人员变为发送者
$respContent = $_POST['content'];//客服人员的回复内容
$time = time();
$sql = "insert into kefu_msg (pos,rec,content,time) values ('$pos','$rec','$respContent','$time')";
echo mysqli_query($conn,$sql) ? 'ok':'fail';